﻿<Window x:Class="Avarton_Scanner.History"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="History" Height="768" Width="1366" ResizeMode="NoResize" Opacity="0.95" MaxHeight="600" MaxWidth="800" WindowStyle="None" Icon="/Images/AvartonIcon32.ico" Loaded="Window_Loaded">
    <Window.Resources>
        <!--Combobox opmaak-->
        <Style TargetType="ComboBox" >
            <Setter Property="BorderBrush" Value="White" />
            <Setter Property="BorderThickness" Value="2" />
            <Setter Property="Background" Value="#00000000" />
            <Setter Property="Foreground" Value="Black" />
            <Setter Property="IsReadOnly" Value="True" />
        </Style>

        <!--Button opmaak-->
        <Style TargetType="Button" >
            <Setter Property="OverridesDefaultStyle" Value="True" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Name="border" 
                            BorderThickness="2"
                            BorderBrush="White" 
                            CornerRadius="0" 
                            Background="#FFB5BBBB">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="border" Property="BorderBrush" Value="White" />
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter TargetName="border" Property="Background" Value="White" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
        <Grid.Background>
            <ImageBrush ImageSource="/Images/background.jpg" Stretch="UniformToFill" TileMode="None" />
        </Grid.Background>
        <Image Height="15" HorizontalAlignment="Left" Margin="775,12,0,0" Name="btnClose" Stretch="Fill" VerticalAlignment="Top" Width="15" ForceCursor="False" Source="/Images/btnClose.png" Cursor="Hand" MouseDown="btnClose_MouseDown" />
        <Canvas Height="548" HorizontalAlignment="Left" Margin="12,40,0,0" Name="canvas1" VerticalAlignment="Top" Width="776" Background="#FFB5BBBB">
            <ListView Canvas.Left="6" Canvas.Top="36" Height="506" Name="lstClients" Width="764" AlternationCount="1">
                <ListView.View>
                    <GridView AllowsColumnReorder="true" >
                        <GridViewColumn Header="SSID" DisplayMemberBinding="{Binding Path=SSID}" />
                        <GridViewColumn Header="IP" DisplayMemberBinding="{Binding Path=IP}"/>
                        <GridViewColumn Header="MAC" DisplayMemberBinding="{Binding Path=MAC}"/>
                        <GridViewColumn Header="First seen" DisplayMemberBinding="{Binding Path=FirstSeen}"/>
                        <GridViewColumn Header="Last seen" DisplayMemberBinding="{Binding Path=LastSeen}"/>
                        <GridViewColumn Header="Hostname" DisplayMemberBinding="{Binding Path=Hostname}"/>
                    </GridView>
                </ListView.View>
            </ListView>
            <Button Canvas.Left="287" Canvas.Top="8" Content="Filter" Height="23" Name="btnFilter" Width="75" Click="btnFilter_Click" />
            <ComboBox Canvas.Left="110" Canvas.Top="8" Height="23" Name="cboNetworks" Width="171" />
            <Label Canvas.Left="6" Canvas.Top="6" Content="Filter on network:" Height="28" Name="lblFilter" />
            <Label Canvas.Left="368" Canvas.Top="6" Height="28" Name="lblStatus" Foreground="White" />
        </Canvas>
        <Label Content="History" Height="40" Name="lblApplicationName" VerticalAlignment="Top" Foreground="White" FontWeight="ExtraBlack" FontSize="20" HorizontalContentAlignment="Center" Margin="100,0,100,0" />
    </Grid>
</Window>
